package com.hc.blogssm.services;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hc.blogssm.dao.BlogMapper;

@Service
public class BlogServicesImpl implements BlogServices{
	
	@Autowired
	private BlogMapper blogMapper;

	@Override
	public List<Map<String, Object>> findAllContent(Map<String, Object> map) {
		return blogMapper.findAllContent(map);
	}

	@Override
	public Map<String, Object> findCount(Map<String, Object> map) {
		return blogMapper.findCount(map);
	}

	@Override
	public int addMsg(Map<String, Object> map) {
		return blogMapper.addMsg(map);
	}

	@Override
	public int deleteMsgById(Map<String, Object> map) {
		return blogMapper.deleteMsgById(map);
	}
	
	

}
